package modelLayer;


public class Loan {
    
    private Person p;
    private Dvd d;
    private int id;
    private String borrowDate;
    private String period;
    private String state = "not returned";
    
    public Loan(Person p, Dvd d, int id, String borrowDate, String period) {
        this.p = p;
        this.d = d;
        this.id = id;
        this.borrowDate = borrowDate;
        this.period = period;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    public void setBorrowDate(String borrowDate) {
        this.borrowDate = borrowDate;
    }
    
    public void setPeriod(String period) {
        this.period = period;
    }
    
    public void setState(String state) {
        this.state = state;
    }
    
    public int getId() {
        return id;
    }
    
    public String getBorrowDate() {
        return borrowDate;
    }
    
    public String getPeriod() {
        return period;
    }
    
    public String getState() {
        return state;
    }
}
